#ifndef ITEM_HH
#define ITEM_HH

#include "Ahero.hh"
#include <functional>

namespace Item {
    struct Item {
        std::string name;
        std::string description;
        std::function<void(Ahero&)> effect;

        void operator+=(Ahero& hero) const {
            effect(hero);
        }
    };

    // 物品实例声明
    extern const Item HealingPotion;
    extern const Item StressReliever;
    extern const Item SpeedBoost;
    extern const Item AttackBoost;
}

#endif